package org.dromara.exam.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.exam.domain.dto.ProjectSetting;
import org.dromara.exam.domain.dto.TemplateSchema;
import org.dromara.exam.domain.entity.ExamProject;

/**
 * 项目业务对象 exam_project
 *
 * @author xiyin321
 * @date 2024-05-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ExamProject.class, reverseConvertGenerate = false)
public class ExamProjectBo extends BaseEntity {

    /**
     * 项目ID
     */
    @NotNull(message = "项目ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 项目名称
     */
    @NotNull(message = "项目名称不能为空", groups = {AddGroup.class,EditGroup.class})
    private String name;

    /**
     * 项目类型
     */
    private TemplateSchema.QuestionType mode;

    /**
     * 内容
     */
    private TemplateSchema survey;

    /**
     * 状态
     */
    private String status;

    /**
     * 配置
     */
    private ProjectSetting setting;

    /**
     * 备注信息
     */
    private String remark;

}
